Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct spelling mistakes #2645

Merged
merged 31 commits into from
May 10, 2022
Merged

Correct spelling mistakes #2645

merged 31 commits into from
May 10, 2022

Conversation

jsoref
Copy link
Contributor

@jsoref jsoref commented May 4, 2022

Proposed changes

Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue here in this description (not in the title of the PR).

This PR corrects misspellings identified by the check-spelling action.

The misspellings have been reported at jsoref@5503c5e#commitcomment-72824593

The action reports that the changes in this PR would make it happy: jsoref@1af0f5c

Note: this PR does not include the action. If you're interested in running a spell check on every PR and push, that can be offered separately.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works -- tests are not expected to be merged with this PR, but they're available...
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

jsoref added 24 commits May 3, 2022 22:54
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Copy link
Contributor Author

@jsoref jsoref left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most corrections were automatically suggested by Google Sheets.
All fault is mine.

An automatically generated list of changes can be found on Github at: [2.2.0 Release](https://github.com/nginxinc/kubernetes-ingress/releases/tag/v2.2.0)
An automatically generated list of changes can be found on GitHub at: [2.2.0 Release](https://github.com/nginxinc/kubernetes-ingress/releases/tag/v2.2.0)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brand.

Some projects don't like changing changelogs. I can drop files if requested.

|``dryRun`` | Enables the dry run mode. In this mode, the rate limit is not actually applied, but the the number of excessive requests is accounted as usual in the shared memory zone. | ``bool`` | No |
|``dryRun`` | Enables the dry run mode. In this mode, the rate limit is not actually applied, but the number of excessive requests is accounted as usual in the shared memory zone. | ``bool`` | No |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doubled words are a new area for me. I'm still not terribly confident about them.

I understand that things like this probably will require a chart release. I'll cross that bridge at the end.

## Step 2 - Deploy the Egress MLTS Secret
## Step 2 - Deploy the Egress MTLS Secret
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!!

secret: gprc-secret
secret: grpc-secret
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?!

mergeableIngresses.Minions[0].Ingress.Annotations["nginx.com/jwt-login-url"] = "https://login.cofee.example.com"
mergeableIngresses.Minions[0].Ingress.Annotations["nginx.com/jwt-login-url"] = "https://login.coffee.example.com"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming there aren't any hashes that care about this change.

# allow 127.0.0.1; # Only the NGINX host may call the NIGNX Plus API
# allow 127.0.0.1; # Only the NGINX host may call the NGINX Plus API
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brand

Comment on lines -6 to +7
ingredsssMTLS: # invalid/mis-spelled yaml keys
clientCertSecrettt: ingress-mtls-secret
ingress_MTLS: # invalid/mis-spelled yaml keys
clientCertSecret_: ingress-mtls-secret
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand you're trying to misspell things, but there are ways to generate invalid content that doesn't result in spell checkers screaming. As you can see, there are plenty of misspelled items, some of which are user facing. I argue it's better to avoid misspelling words when possible, and using a _ should work for that purpose. (If not _, then adding another word or swapping the order of words or substituting a word...)

Copy link
Member

@lucacome lucacome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsoref the changes in the strings in the tests are making them fail

@@ -31,7 +31,7 @@ spec:
metadata:
type: object
spec:
description: DosProtectedResourceSpec deines the properties and values a DosProtectedResource can have.
description: DosProtectedResourceSpec defines the properties and values a DosProtectedResource can have.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the CRD are automatically generated, so we need to change the source

pinging @rafwegv

@@ -4927,7 +4927,7 @@ func TestGenerateSSLConfig(t *testing.T) {
RejectHandshake: true,
},
expectedWarnings: Warnings{
nil: []string{"TLS secret secret is invalid: secret doesn't exist"},
nil: []string{"TLS secret is invalid: secret doesn't exist"},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing this (and the following one) will make the test fail. The second secret here is just the name specified on line 4916.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The templated thing should wrap the evaluated thing with backticks to make it easier for a human to parse

jsoref added 4 commits May 8, 2022 06:03
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
jsoref added 2 commits May 8, 2022 06:03
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented May 8, 2022

Codecov Report

Merging #2645 (9961427) into main (22d3d7f) will increase coverage by 0.02%.
The diff coverage is 28.57%.

@@            Coverage Diff             @@
##             main    #2645      +/-   ##
==========================================
+ Coverage   53.39%   53.42%   +0.02%     
==========================================
  Files          52       52              
  Lines       14706    14706              
==========================================
+ Hits         7853     7857       +4     
+ Misses       6591     6589       -2     
+ Partials      262      260       -2     
Impacted Files Coverage Δ
internal/configs/annotations.go 21.56% <0.00%> (ø)
internal/k8s/controller.go 10.87% <0.00%> (ø)
internal/k8s/utils.go 11.76% <ø> (ø)
internal/metrics/collectors/latency.go 49.66% <ø> (ø)
internal/metrics/collectors/processes.go 0.00% <0.00%> (ø)
internal/nginx/fake_manager.go 0.00% <ø> (ø)
internal/configs/virtualserver.go 95.32% <100.00%> (ø)
internal/k8s/configuration.go 95.86% <0.00%> (+0.38%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@lucacome lucacome requested review from a team, ciarams87, jjngx and shaun-nx May 9, 2022 12:04
@lucacome lucacome added the documentation Pull requests/issues for documentation label May 10, 2022
@lucacome lucacome changed the title Spelling Correct spelling mistakes May 10, 2022
@lucacome lucacome merged commit 028a449 into nginx:main May 10, 2022
@jsoref jsoref deleted the spelling branch May 10, 2022 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Pull requests/issues for documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants